package ooday04;

public class StaticMethod {
    int a;
    static int b;

    void show() {
        System.out.println(a);
        System.out.println(b);
    }

    static void test() {//静态方法无this，即无对象
//        show();
//        System.out.println(a);//静态方法无法直接访问实例方法和实例对象
        System.out.println(b);
    }

    void say() {
        System.out.println(a);
    }

    static int plus(int num1, int num2) {
        int num = num1 + num2;
        return num;
    }

}
